import React from "react";
import {NavLink} from "react-router-dom";

class Menu extends React.Component{
    render() {
        return (
            <header>
                <div className="page-card page-bg">
                    <span className="header-title">Karsure 要学习 React</span>
                    <ul className="header-menu">
                        <li>
                            <NavLink to="/home">Home</NavLink>
                        </li>
                        <li>
                            <NavLink to="/user">User</NavLink>
                        </li>
                        <li>
                            <NavLink to="/login">Login</NavLink>
                        </li>
                        <li>
                            <NavLink to="/NotFound">NotFound</NavLink>
                        </li>
                    </ul>
                </div>

            </header>
        );
    }
}

export default Menu;